package org.shoukaiseki.aqoeous.token;

import org.shoukaiseki.aqoeous.model.BaseSO;
import org.shoukaiseki.aqoeous.service.TokenUserService;
import org.springframework.stereotype.Service;

/**
 * org.shoukaiseki.aqoeous.token.TokenUserServiceImpl
 * <br>
 *
 * @author 蒋カイセキ    Japan-Tokyo  19-2-11 下午3:47<br>
 * ブログ http://www.shoukaiseki.top/<br>
 * E-メール jiang28555@Gmail.com<br>
 **/
@Service
public class TokenUserServiceImpl implements TokenUserService {

    @Override
    public Long getTokenUserId() {
        return null;
    }

    @Override
    public void initSO(Object object) {
        if (object instanceof BaseSO) {
            ((BaseSO) object).setTokenUserId(getTokenUserId());
            ((BaseSO) object).initialize();
        }
    }
}
